@model IEnumerable<WorkingWithVisualStudio.Models.Product>
@{Layout=null;}
<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width"/>
    <title>Working with Visual Studio</title>
    <link rel="stylesheet" href="css/bundle.min.css"/>
    <script src="js/bundle.min.js"></script>
  </head>
  <body>
    <h3>Products</h3>
    <p>Request Time:@DateTime.Now.ToString("HH:mm:ss")</p>
    <table>
      <thead>
        <tr>
          <td>Name</td>
          <td>Price</td>
        </tr>
      </thead>
      <tbody>
            @foreach(var p in Model)
            {
                <tr>
                  <td>@p.Name</td>
                  <td>@($"{p.Price:C2}")</td>
                </tr>
            }
        </tbody>
    </table>
  </body>
</html>
